import java.util.*;

public class UnusuallAdd {
    public int addAB(int A, int B) {
        while(B!=0){
            int a=A^B;
            int b=(A&B)<<1;
            A=a;
            B=b;
        }
        return A;
    }
}
